<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/pages/layout.xhtml">
	<ui:define name="conteudo">
		<h3>Situação de Conta</h3>
		
		<h:commandLink action="#{situacaoContaMBean.voltar}" value="Listagem" immediate="true"/>
		
		<br/><br/>
		
		<table> 
			<tr>
				<td>Descrição:</td>
				<td><h:inputText value="#{situacaoContaMBean.obj.descricao}" size="40"/></td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<h:commandButton value="Cadastrar" action="#{situacaoContaMBean.salvar}" rendered="#{situacaoContaMBean.obj.id == 0}" />
					<h:commandButton value="Atualizar" action="#{situacaoContaMBean.atualizar}" rendered="#{situacaoContaMBean.obj.id > 0}" />		
				</td>
			</tr>
		</table>
	</ui:define>
</ui:composition>

</html>